package com.hzqy.persistence.dao.userActivityInfo;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.CmContentVo;
import com.hzqy.web.vo.UserActivityInfoVo;

@Repository
public class UserActivityInfoDao extends PersistenceDao<UserActivityInfoVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	public int insertUserActivityInfo(UserActivityInfoVo userActivityInfoVo) {
		return getSqlSession().insert(this.getNamespace()+"insertUserActivityInfo", userActivityInfoVo);
	}
	
	public int updateUserActivityInfo(Map<String,Object> map) {
		return getSqlSession().update(this.getNamespace()+"updateUserActivityInfo",map);
	}
	
	public UserActivityInfoVo selectUserActivityInfo(Map<String,Object> map) {
		return getSqlSession().selectOne(this.getNamespace()+"selectUserActivityInfo",map);
	}
	
	public List<CmContentVo> selectContentList(Map<String,Object> map) {
		return getSqlSession().selectList(this.getNamespace()+"selectContentList",map);
	}
}
